package com.ccc.dingtalk.service.db.impl;

import com.ccc.dingtalk.mapper.UserInfoMapper;
import com.ccc.dingtalk.pojo.db.UserInfo;
import com.ccc.dingtalk.service.db.IUserInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author superC
 * @version 2.0.0
 * @date 2023/8/24
 */

@Service
public class UserInfoServiceImpl implements IUserInfoService {

    @Resource
    private UserInfoMapper mapper;

    @Override
    public List<UserInfo> findAll() {
        return mapper.findAll();
    }

    @Override
    public boolean insert(UserInfo entity) {
        mapper.insert(entity);
        return true;
    }

    @Override
    public boolean delete(String id) {
        mapper.delete(id);
        return true;
    }

    @Override
    public boolean truncate() {
        mapper.truncate();
        return true;
    }

}
